< previous page page_203 next page >

Page 203
Date Functions
This section looks at some of the most commonly used date functions. Figure 10.2 shows you the example from this chapter that illustrates these functions.
8160-0203a.gif
Figure 10.2
Date function examples.
Examples Filename: Dates.frm
For each of the functions listed in this section, you can click the corresponding button in the example.
Now
This function returns a variant thats a date/timestamp. Its based on the current system date and time. Heres an example:
9f31265bb40b592b1929e18a47ab28e5.gif
Private Sub cmdNow_Click ()
   Dim dtDate As Date

   Me.Cls
   ' Get System Date/Time
   dtDate = Now

   Me.Print "Now = " & dtDate
End Sub

 
< previous page page_203 next page >

If you like this book, buy it!